package com.xuecheng.orders.domain.feignclient;

import com.xuecheng.orders.domain.feignclient.fallback.CourseServiceClientFallbackFactory;
import com.xuecheng.orders.infrastructure.vo.CoursePublish;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "course-service", fallbackFactory = CourseServiceClientFallbackFactory.class)
public interface CourseServiceClient {
    @GetMapping("/r/coursepublish/{courseId}")
    CoursePublish getCoursepublish(@PathVariable("courseId") Long courseId);
}
